package org.jeecg.modules.demo.score.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.score.entity.ScoreInf;
import org.jeecg.modules.demo.score.mapper.ScoreInfMapper;
import org.jeecg.modules.demo.score.service.IScoreInfService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: 积分详情表
 * @Author: jeecg-boot
 * @Date:   2024-10-17
 * @Version: V1.0
 */
@Service
public class ScoreInfServiceImpl extends ServiceImpl<ScoreInfMapper, ScoreInf> implements IScoreInfService {

    @Override
    public Page<ScoreInf> getScoreInfListPage(Page page, Map<String, Object> param) {
        return this.baseMapper.getScoreInfList(page,param);
    }

    @Override
    public List<ScoreInf> getScoreInfList(Map<String, Object> param) {
        return this.baseMapper.getScoreInfList(param);
    }

    @Override
    public Integer isAdmin(String userId, String adminRoleCode) {
        return this.baseMapper.isAdmin(userId,adminRoleCode);
    }
}
